<?php

use App\Services\WeChat\WeChatService;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;

use EasyWeChat\Factory;

/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/

Route::get('/', function ()
{
    return view('welcome');
});

Route::get('/demo', function ()
{
    return view('email.demo');
});

// 获取公众号的OPENID
Route::get('client/wechat/oa/openid', 'Client\WeChat\OA\GetOpenIdController@handle');


